package com.gz.moreaseManager.modules.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.gz.moreaseManager.modules.entity.HelpType;
import com.gz.moreaseManager.modules.mapper.HelpTypeMapper;
import com.gz.moreaseManager.modules.service.IHelpTypeService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 帮助分类表 服务实现类
 * </p>
 *
 * @author wike
 * @since 2019-05-28
 */
@Service
public class HelpTypeServiceImpl extends ServiceImpl<HelpTypeMapper, HelpType> implements IHelpTypeService {

    @Resource
    private HelpTypeMapper helpTypeMapper;


    @Override
    public Page<HelpType> findHelpTypePage(Page page) {
        page.setOptimizeCountSql(false);
        page.setSearchCount(true);
        return page.setRecords(helpTypeMapper.selectHelpPageList(page));
    }
}
